<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Index</title>
    <script type="text/javascript" src="pageoffice.js" id="po_js_main"></script>
</head>
<body>
<h1 th:inline="text">PageOffice 集成效果演示</h1>
<div th:each="f:${files}">
    <!--https://blog.csdn.net/u010592926/article/details/86373871-->
    <a th:href="@{'javascript:void(0);'}" th:onclick="openDocument([[${f.getName()}]])" th:text="${f.getName()}"></a>
</div>
<script type="application/javascript">
    function openDocument(fileName) {
        POBrowser.openWindowModeless('word?fileName=' + encodeURI(fileName), 'width=1200px;height=800px;');
    }
</script>
</body>
</html>
